import {request} from "@@/plugin-request/request";
import {GenAddTableData} from "@/pages/system/tool/gen/add/interfaces";
import {HttpResult} from "@/services/typings";

export const addGenTable = async (data: GenAddTableData) => {
  return request<HttpResult<string>>('/api/table/add', {
    method: 'POST',
    data: data
  });
}
